package com.xfcy.blog.entity;

import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xfcy.blog.common.constant.DateConstant;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;

/**
 * (Message)表实体类
 *
 * @author 晓风残月Lx
 * @since 2023-04-09 11:03:05
 */
@TableName("b_message")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Message implements Serializable {
    //ID
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    //内容
    private String content;
    //创建时间
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = DateConstant.FORMAT_STRING, timezone = DateConstant.GMT_TIMEZONE)
    private LocalDateTime createTime;
    
    private String nickname;
    
    private String avatar;
    
    private String ipAddress;
    
    private String ipSource;
    // 弹幕速度
    private Integer time;
    //状态 0:审核  1：正常
    private Integer status;

}

